package org.hamster.common.services
{
	import flash.events.IEventDispatcher;
	
	import mx.messaging.AbstractConsumer;
	
	public interface ICacheService extends IEventDispatcher
	{
		function putItem(key:String, value:*):*;
		function getItem(key:String):*;
		function putItemAsync(key:String, data:*):void;
		function putAll(keyList:Array, valueList:Array):Array;
		function putAllAsync(keyList:Array, dataList:Array):void;
		function clean(key:String):*;
		function cleanAll():void;
		function exists(key:String):Boolean;
		function size():int;
	}
}